<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        body{
            background-color: skyblue;
        }
        .box{
            margin:0 auto;
            width:500px;
            animation:change1 3s ease-in-out infinite;
            padding-top:20px;
            /* transform:translate(0,150px) scale(0.5); */
        }
        .box div{
            width:100px;
            height:100px;
            background-color:red;
        }
        .box1{
            transform:translate(150px,0);
            border-radius:50%;
        }
        .box2{
            transform:translate(232px,-100px);
            border-radius:50%;
        }
        .box3{
            transform:translate(191px,-160px) rotate(45deg);
            border-radius:3px;
        }
        @keyframes change1{
            0%{
                transform:scale(1);
            }
            20%{
                transform:scale(1.5);
                opacity:0.3;
            }
            40%{
                transform:translate(0,150px) scale(0.5);
                opacity:1;
            }
            80%{
                transform:scale(1.5);
                opacity:0.5;
            }
            100%{
                transform:scale(1);
                opacity:1;
            }
        }
        .item{
            margin:0 auto;
            width:70px;
            height:0px;
            transform:translate(-3px,-14px);
            box-shadow:0px 10px 30px 5px black;
            opacity:0;
            animation:change2 3s ease-in-out infinite;
        }
        @keyframes change2{
            0%{
                opacity:0;
            }
            20%{
                opacity:0;
            }
            40%{
                opacity:1;
            }
            80%{
                opacity:0;
            }
            100%{
                opacity:0;
            }
        }
    </style>
</head>
<body>
    <div class="box">
        <div class="box1"></div>
        <div class="box2"></div>
        <div class="box3"></div>
    </div>
    <div class="item"></div>
</body>
</html>